package interactiond

import (
	cinteractiond "gogs.xiaoyuanjijiehao.com/antlinker/antcms/core/interactiond"
	"gogs.xiaoyuanjijiehao.com/antlinker/antcms/ddd/repo/mgorepo"
)

// CreDomainOption 创建域配置
func CreDomainOption() cinteractiond.DomainOption {
	mgorepo.RegColForIndex(&collGroup{})
	mgorepo.RegColForIndex(&collInteraction{})
	mgorepo.RegColForIndex(&collReplay{})
	mgorepo.RegColForIndex(&collType{})
	return cinteractiond.DomainOption{
		GroupRepo:       &groupRepo{},
		TypeRepo:        &typeRepo{},
		ReplayRepo:      &replayRepo{},
		InteractionRepo: &interactionRepo{},
	}
}
